export default [
  {
    path: "/home",
    component: () => import("@/views/home/index.vue"),
    name: "home",
    meta: {
      title: "首页",
      icon: "House",
    },
  },
  {
    path: "/screen-menu",
    redirect: "/screen",
    name: "screen-menu",
    meta: {
      title: "数据大屏",
      icon: "PieChart",
    },
  },
  {
    path: "/acl",
    name: "acl",
    redirect: "/acl/user",
    meta: {
      title: "权限管理",
      icon: "Lock",
    },
    children: [
      {
        path: "/acl/user",
        component: () => import("@/views/acl/user/index.vue"),
        name: "user",
        meta: {
          title: "用户管理",
          icon: "User",
        },
      },
      {
        path: "/acl/role",
        component: () => import("@/views/acl/role/index.vue"),
        name: "role",
        meta: {
          title: "角色管理",
          icon: "UserFilled",
        },
      },
      {
        path: "/acl/menu",
        component: () => import("@/views/acl/menu/index.vue"),
        name: "menu",
        meta: {
          title: "菜单管理",
          icon: "Menu",
        },
      },
    ],
  },
  {
    path: "/product",
    name: "product",
    redirect: "/product/trademark",
    meta: {
      title: "商品管理",
      icon: "Goods",
    },
    children: [
      {
        path: "/product/trademark",
        component: () => import("@/views/product/trademark/index.vue"),
        name: "trademark",
        meta: {
          title: "品牌管理",
          icon: "ShoppingCart",
        },
      },
      {
        path: "/product/attr",
        component: () => import("@/views/product/attr/index.vue"),
        name: "attr",
        meta: {
          title: "属性管理",
          icon: "ChromeFilled",
        },
      },
      {
        path: "/product/spu",
        component: () => import("@/views/product/spu/index.vue"),
        name: "spu",
        meta: {
          title: "spu管理",
          icon: "Paperclip",
        },
      },
      {
        path: "/product/sku",
        component: () => import("@/views/product/sku/index.vue"),
        name: "sku",
        meta: {
          title: "sku管理",
          icon: "Discount",
        },
      },
    ],
  },
];
